// Gawande, Krishna, and Olarreaga 2009 IO

// REPLICATION
clear
use "GKO2009 IO Rep Data.dta"
summarize
display c(k)
mdesc
tabmiss
codebook ccode
codebook year

// Table 1
gen left3=tu*ehat*m/vaf
reg left3 cd*, nocons robust
codebook ccode if e(sample)
codebook year if e(sample)

// Table 4
clear
use table3data_online
summarize
mdesc
reg laf prh prhd nprhd illiteracy urban ld pctvad_pcgdp checks eiec allhouse esim

reg laf prh prhd nprhd illiteracy urban ld pctvad_pcgdp bchecks beiec allhouse esim


// IMPUTATION
clear
use "GKO2009 IO Imp Data.dta"
summarize

mi import flong, m(imp) id(case year) imp(vs-left3)

// Table 1
mi estimate: reg left3 cd*, nocons robust

// Table 4
clear
use table3data_online_mi
summarize

reg laf prh prhd nprhd illiteracy urban ld pctvad_pcgdp checks eiec allhouse esim

reg laf prh prhd nprhd illiteracy urban ld pctvad_pcgdp bchecks beiec allhouse esim

